<style type="text/css">
    @media (max-width: 375px) {
        .edit-form tr td input{width:100%;}
        .edit-form tr th:first-child,.edit-form tr td:first-child{
            width:20%;
        }
        .edit-form tr th:nth-last-of-type(-n+2),.edit-form tr td:nth-last-of-type(-n+2){
            display: none;
        }
    }
    .edit-form table > tbody > tr td a.btn-delcfg{
        visibility: hidden;
    }
    .edit-form table > tbody > tr:hover td a.btn-delcfg{
        visibility: visible;
    }
</style>
<div id="main" role="main">
    <div class="tab-content tab-addtabs">
        <div id="content">
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                    <!--
                    <section class="content-header hide">
                        <h1>控制台<small>Control panel</small></h1>
                    </section>
                    -->
                    <!-- RIBBON -->
                    <!--
                    <div id="ribbon">
                        <ol class="breadcrumb pull-left">
                            <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> 控制台</a></li>
                        </ol>
                        <ol class="breadcrumb pull-right">
                            <li><a href="javascript:;" data-url="/145.php/general.config/general">常规管理</a></li>
                            <li><a href="javascript:;" data-url="/145.php/general/config">系统配置</a></li>
                        </ol>
                    </div>
                    -->
                    <!-- END RIBBON -->
                    <div class="content">
                        <div class="panel panel-default panel-intro">
                            <div class="panel-heading">
                                <div class="panel-lead">
                                    <em>系统配置</em>可以在此增改系统的变量和分组,也可以自定义分组和变量,如果需要删除请从数据库中删除
                                </div>
                                <ul class="nav nav-tabs">
                                    <li class="active"><a href="#pindex" data-toggle="tab" aria-expanded="true">基础配置</a></li>
                                    <li class=""><a href="#email" data-toggle="tab" aria-expanded="false">邮件配置</a></li>
                                    <li class=""><a href="#dictionary" data-toggle="tab" aria-expanded="false">字典配置</a></li>
                                    <li class=""><a href="#user" data-toggle="tab" aria-expanded="false">会员配置</a></li>
                                    <!-- <li class=""><a href="#example" data-toggle="tab" aria-expanded="false">示例分组</a></li>
                                    <li>
                                        <a href="#addcfg" data-toggle="tab" title="点击添加新的配置"><i class="fa fa-plus"></i></a>
                                    </li> -->
                                </ul>
                            </div>
                            <div class="panel-body">
                                <div id="myTabContent" class="tab-content">
                                      <div class="tab-pane fade active" id="pindex">
                                          <div class="widget-body no-padding">
                                              <form id="pindex-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST" action="{:url('general.config/edit')}">
                                                  <table class="table table-striped">
                                                      <thead>
                                                          <tr>
                                                              <th width="30%">{:lang('Title')}</th>
                                                              <th width="70%">{:lang('Value')}</th>
                                                              <!-- <th width="15%">{:lang('Name')}</th> -->
                                                          </tr>
                                                      </thead>
                                                      <tbody>

                                                          {volist name="siteList" id="vo" key="k" }
                                                          <tr>
                                                              <td>{:__($key)}</td>
                                                              <td>
                                                                  <div class="row">
                                                                      <div class="col-sm-8 col-xs-12">
                                                                          <input type="text" name="row[{$key}]" value="{$vo}" class="form-control" data-rule=""  data-tip="" />
                                                                      </div>
                                                                      <div class="col-sm-4"></div>
                                                                  </div>

                                                              </td>
                                                              <!-- <td></td> -->
                                                          </tr>
                                                          {/volist}
                                                              <tr>
                                                                  <td>字典配置</td><input type="hidden" name="row[self]" id="selfname" value=" " />
                                                                  <td>
                                                                      <div class="row">
                                                                          <div class="col-sm-8 col-xs-12">
                                                                              <dl class="fieldlist" data-name="self" rel="<?php echo count($siteself);?>">
                                                                              <dd>
                                                                                  <ins>&nbsp;键名</ins>
                                                                                  <ins>&nbsp;标题</ins>
                                                                              </dd>
                                                                              {volist name="siteself" id="vo" key="k"}
                                                                              <dd class="form-inline">
                                                                                  <input type="text" name="row[self][{$k}][key]" class="form-control" value="{$key}" size="10" />&nbsp;
                                                                                  <input type="text" name="row[self][{$k}][value]" class="form-control" value="{$vo}" size="30" />&nbsp;
                                                                                  <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>&nbsp;
                                                                                  <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                                                                              </dd>
                                                                              {/volist}
                                                                              <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append">
                                                                              <i class="fa fa-plus"></i>追加</a></dd>
                                                                              <!-- <textarea name="row[categorytype]" class="form-control hide" cols="30" rows="5"></textarea> -->
                                                                              </dl>
                                                                          </div>
                                                                          <div class="col-sm-4"></div>
                                                                      </div>
                                                                  </td>
                                                                  <!-- <td>{categorytype}</td> -->
                                                              </tr>

                                                      </tbody>
                                                      <tfoot>
                                                          <tr>
                                                              <td></td>
                                                              <td>
                                                                  <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
                                                                  <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                                                              </td>
                                                              <!-- <td></td> -->
                                                          </tr>
                                                      </tfoot>
                                                  </table>
                                              </form>
                                          </div>
                                      </div>

                                      <div class="tab-pane fade" id="addcfg">
                                          <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="{:url('general.config/add')}">
                                              <div class="form-group">
                                                  <label for="type" class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <select name="row[type]" class="form-control selectpicker">

                                                      </select>
                                                  </div>
                                              </div>
                                              <input type="hidden" name="row[group]" value="self" />
                                              <!--
                                              <div class="form-group">
                                                  <label for="group" class="control-label col-xs-12 col-sm-2">{:__('Group')}:</label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <select name="row[group]" class="form-control selectpicker">

                                                      </select>
                                                  </div>
                                              </div>
                                            -->
                                              <div class="form-group">
                                                  <label for="name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <input type="text" class="form-control" id="name" name="row[name]" value="" data-rule="required; length(3~30); remote(general.config/check)" />
                                                  </div>
                                              </div>
                                              <div class="form-group">
                                                  <label for="title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <input type="text" class="form-control" id="title" name="row[title]" value="" data-rule="required" />
                                                  </div>
                                              </div>
                                              <div class="form-group">
                                                  <label for="value" class="control-label col-xs-12 col-sm-2">{:__('Value')}:</label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <input type="text" class="form-control" id="value" name="row[value]" value="" data-rule="" />
                                                  </div>
                                              </div>
                                              <div class="form-group hide" id="add-content-container">
                                                  <label for="content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <textarea name="row[content]" id="content" cols="30" rows="5" class="form-control" data-rule="required">value1|title1value2|title2</textarea>
                                                  </div>
                                              </div>
                                              <div class="form-group">
                                                  <label for="tip" class="control-label col-xs-12 col-sm-2">{:__('Tip')}:</label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <input type="text" class="form-control" id="tip" name="row[tip]" value="" data-rule="" />
                                                  </div>
                                              </div>
                                              <div class="form-group">
                                                  <label for="rule" class="control-label col-xs-12 col-sm-2">{:__('Rule')}:</label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <input type="text" class="form-control" id="rule" name="row[rule]" value="" />
                                                  </div>
                                              </div>
                                              <div class="form-group">
                                                  <label for="extend" class="control-label col-xs-12 col-sm-2">{:__('Extend')}:</label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <textarea name="row[extend]" id="extend" cols="30" rows="5" class="form-control" data-rule=""></textarea>
                                                  </div>
                                              </div>
                                              <div class="form-group">
                                                  <label class="control-label col-xs-12 col-sm-2"></label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
                                                      <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                                                  </div>
                                              </div>

                                          </form>

                                      </div>


                                      <div class="tab-pane fade" id="email">
                                          <div class="widget-body no-padding">
                                              <form id="email-form" class="edit-form form-horizontal nice-validator n-default n-bootstrap" role="form" data-toggle="validator" method="POST" action="/145.php/general.config/edit" novalidate="novalidate">
                                                  <input type="hidden" name="__token__" value="746a76b9a51e2b13d965540ba339a8af">
                                                  <table class="table table-striped">
                                                      <thead>
                                                          <tr>
                                                              <th width="15%">变量标题</th>
                                                              <th width="68%">变量值</th>
                                                              <!-- <th width="15%">变量名</th> -->
                                                              <th width="2%"></th>
                                                          </tr>
                                                      </thead>
                                                      <tbody>
                                                          <tr>
                                                              <td>邮件发送方式</td>
                                                              <td>
                                                                  <div class="row">
                                                                      <div class="col-sm-8 col-xs-12">
                                                                          <div class="btn-group bootstrap-select">
                                                                              SMTP
                                                                          </div>
                                                                      </div>
                                                                      <!-- <div class="col-sm-4"></div> -->
                                                                  </div>
                                                              </td>
                                                              <td></td>
                                                          </tr>
                                                          <tr>
                                                              <td>SMTP服务器</td>
                                                              <td>
                                                                  <div class="row">
                                                                      <div class="col-sm-8 col-xs-12">
                                                                          <input type="text" name="row[mail_smtp_host]" value="smtp.qq.com" class="form-control" data-rule="" data-tip="错误的配置发送邮件会导致服务器超时">
                                                                      </div>
                                                                      <!-- <div class="col-sm-4"></div> -->
                                                                  </div>

                                                              </td>
                                                              <td></td>

                                                          </tr>
                                                          <tr>
                                                              <td>SMTP端口</td>
                                                              <td>
                                                                  <div class="row">
                                                                      <div class="col-sm-8 col-xs-12">
                                                                          <input type="text" name="row[mail_smtp_port]" value="465" class="form-control" data-rule="" data-tip="(不加密默认25,SSL默认465,TLS默认587)">
                                                                      </div>
                                                                      <!-- <div class="col-sm-4"></div> -->
                                                                  </div>

                                                              </td>
                                                              <td></td>

                                                          </tr>
                                                          <tr>
                                                              <td>SMTP用户名</td>
                                                              <td>
                                                                  <div class="row">
                                                                      <div class="col-sm-8 col-xs-12">
                                                                          <input type="text" name="row[mail_smtp_user]" value="10000" class="form-control" data-rule="" data-tip="（填写完整用户名）">
                                                                      </div>
                                                                      <!-- <div class="col-sm-4"></div> -->
                                                                  </div>

                                                              </td>
                                                              <td></td>

                                                          </tr>
                                                          <tr>
                                                              <td>SMTP密码</td>
                                                              <td>
                                                                  <div class="row">
                                                                      <div class="col-sm-8 col-xs-12">
                                                                          <input type="text" name="row[mail_smtp_pass]" value="password" class="form-control" data-rule="" data-tip="（填写您的密码）">
                                                                      </div>
                                                                      <!-- <div class="col-sm-4"></div> -->
                                                                  </div>

                                                              </td>
                                                              <td></td>

                                                          </tr>

                                                          <tr>
                                                              <td>发件人邮箱</td>
                                                              <td>
                                                                  <div class="row">
                                                                      <div class="col-sm-8 col-xs-12">
                                                                          <input type="text" name="row[mail_from]" value="10000@qq.com" class="form-control" data-rule="" data-tip="">
                                                                      </div>
                                                                      <!-- <div class="col-sm-4"></div> -->
                                                                  </div>

                                                              </td>
                                                              <td></td>

                                                          </tr>
                                                      </tbody>
                                                      <tfoot>
                                                          <tr>
                                                              <td></td>
                                                              <td>
                                                                  <button type="submit" class="btn btn-success btn-embossed">确定</button>
                                                                  <button type="reset" class="btn btn-default btn-embossed">重置</button>
                                                              </td>
                                                              <td></td>
                                                              <td></td>
                                                          </tr>
                                                      </tfoot>
                                                  </table>
                                              </form>
                                          </div>
                                      </div>

                                      <div class="tab-pane fade " id="dictionary">
                                        <div class="widget-body no-padding">
                                            <form id="dictionary-form" class="edit-form form-horizontal nice-validator n-default n-bootstrap" role="form" data-toggle="validator" method="POST" action="/cms.php/general.config/updateself" novalidate="novalidate">

                                                <table class="table table-striped">
                                                    <thead>
                                                        <tr>
                                                            <th width="15%">变量标题</th>
                                                            <th width="85%">变量值</th>
                                                            <!-- <th width="15%">变量名</th> -->
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                    {volist name="selfList" id="vo" key="k"}
                                                        <tr>
                                                            <td>{$vo.title}</td><input type="hidden" name="row[configname]" id="configname{$k}" value="{$vo.name}" />
                                                            <td>
                                                                <div class="row">
                                                                    <div class="col-sm-8 col-xs-12">
                                                                        <dl class="fieldlist" data-name="{$vo.name}" rel="<?php echo count($vo['value']);?>">
                                                                        <dd>
                                                                            <ins>键名</ins>
                                                                            <ins>键值</ins>
                                                                        </dd>
                                                                        {volist name="vo.value" id="kv" key="kk"}
                                                                        <dd class="form-inline">
                                                                            <input type="text" name="row[{$vo.name}][{$kk}][key]" class="form-control" value="{$key}" size="10" />&nbsp;
                                                                            <input type="text" name="row[{$vo.name}][{$kk}][value]" class="form-control" value="{$kv}" size="30" />
                                                                            <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                                                                            <!-- <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span> -->
                                                                        </dd>
                                                                        {/volist}
                                                                        <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append">
                                                                        <i class="fa fa-plus"></i>追加</a></dd>
                                                                        <!-- <textarea name="row[categorytype]" class="form-control hide" cols="30" rows="5"></textarea> -->
                                                                        </dl>
                                                                    </div>
                                                                    <div class="col-sm-4"></div>
                                                                </div>
                                                            </td>
                                                            <!-- <td>{categorytype}</td> -->
                                                        </tr>
                                                    {/volist}
                                                    </tbody>
                                                    <tfoot>
                                                        <tr>
                                                            <td></td>
                                                            <td>
                                                                <button type="submit" class="btn btn-success btn-embossed">确定</button>
                                                                <button type="reset" class="btn btn-default btn-embossed">重置</button>
                                                            </td>

                                                        </tr>
                                                    </tfoot>
                                                </table>
                                            </form>
                                        </div>
                                      </div>

                                      <div class="tab-pane fade" id="user">
                                          <div class="widget-body no-padding">
                                              <form id="user-form" class="edit-form form-horizontal nice-validator n-default n-bootstrap" role="form" data-toggle="validator" method="POST" action="/145.php/general.config/edit" novalidate="novalidate">
                                                  <input type="hidden" name="__token__" value="746a76b9a51e2b13d965540ba339a8af">                        <table class="table table-striped">
                                                      <thead>
                                                          <tr>
                                                              <th width="15%">变量标题</th>
                                                              <th width="68%">变量值</th>
                                                              <!-- <th width="15%">变量名</th> -->
                                                              <th width="2%"></th>
                                                          </tr>
                                                      </thead>
                                                      <tbody>
                                                      </tbody>
                                                      <tfoot>
                                                          <tr>
                                                              <td></td>
                                                              <td>
                                                                  <button type="submit" class="btn btn-success btn-embossed">确定</button>
                                                                  <button type="reset" class="btn btn-default btn-embossed">重置</button>
                                                              </td>
                                                              <td></td>
                                                          </tr>
                                                      </tfoot>
                                                  </table>
                                              </form>
                                          </div>
                                      </div>

                                      <div class="tab-pane fade" id="example">
                                          <div class="widget-body no-padding">
                                              <form id="example-form" class="edit-form form-horizontal nice-validator n-default n-bootstrap" role="form" data-toggle="validator" method="POST" action="/145.php/general.config/edit" novalidate="novalidate">
                                                  <input type="hidden" name="__token__" value="746a76b9a51e2b13d965540ba339a8af">                        <table class="table table-striped">
                                                      <thead>
                                                          <tr>
                                                              <th width="15%">变量标题</th>
                                                              <th width="68%">变量值</th>
                                                              <!-- <th width="15%">变量名</th> -->
                                                              <th width="2%"></th>
                                                          </tr>
                                                      </thead>
                                                      <tbody>
                                                      </tbody>
                                                      <tfoot>
                                                          <tr>
                                                              <td></td>
                                                              <td>
                                                                  <button type="submit" class="btn btn-success btn-embossed">确定</button>
                                                                  <button type="reset" class="btn btn-default btn-embossed">重置</button>
                                                              </td>
                                                              <!-- <td></td> -->
                                                              <td></td>
                                                          </tr>
                                                      </tfoot>
                                                  </table>
                                              </form>
                                          </div>
                                      </div>
                                      <div class="tab-pane fade" id="addcfg">
                                          <form id="add-form" class="form-horizontal nice-validator n-default n-bootstrap" role="form" data-toggle="validator" method="POST" action="/145.php/general.config/add" novalidate="novalidate">
                                              <div class="form-group">
                                                  <label for="type" class="control-label col-xs-12 col-sm-2">类型:</label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <div class="btn-group bootstrap-select form-control"><button type="button" class="btn dropdown-toggle btn-default" data-toggle="dropdown" role="button" title="字符"><span class="filter-option pull-left">字符</span>&nbsp;<span class="bs-caret"><span class="caret"></span></span></button><div class="dropdown-menu open" role="combobox"><ul class="dropdown-menu inner" role="listbox" aria-expanded="false"><li data-original-index="0" class="selected"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="true"><span class="text">字符</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="1"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">文本</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="2"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">编辑器</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="3"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">数字</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="4"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">日期</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="5"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">时间</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="6"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">日期时间</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="7"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">列表</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="8"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">列表(多选)</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="9"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">图片</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="10"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">图片(多)</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="11"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">文件</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="12"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">文件(多)</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="13"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">开关</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="14"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">复选</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="15"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">单选</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="16"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">数组</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="17"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">Custom</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li></ul></div><select name="row[type]" class="form-control selectpicker" tabindex="-98">
                                                      <option value="string" selected="">字符</option>
                                                      <option value="text">文本</option>
                                                      <option value="editor">编辑器</option>
                                                      <option value="number">数字</option>
                                                      <option value="date">日期</option>
                                                      <option value="time">时间</option>
                                                      <option value="datetime">日期时间</option>
                                                      <option value="select">列表</option>
                                                      <option value="selects">列表(多选)</option>
                                                      <option value="image">图片</option>
                                                      <option value="images">图片(多)</option>
                                                      <option value="file">文件</option>
                                                      <option value="files">文件(多)</option>
                                                      <option value="switch">开关</option>
                                                      <option value="checkbox">复选</option>
                                                      <option value="radio">单选</option>
                                                      <option value="array">数组</option>
                                                      <option value="custom">Custom</option>
                                                  </select></div>
                                                  </div>
                                              </div>
                                              <div class="form-group">
                                                  <label for="group" class="control-label col-xs-12 col-sm-2">分组:</label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <div class="btn-group bootstrap-select form-control">
                                                          <button type="button" class="btn dropdown-toggle btn-default" data-toggle="dropdown" role="button" title="基础配置">
                                                              <span class="filter-option pull-left">基础配置</span>&nbsp;
                                                              <span class="bs-caret"><span class="caret"></span></span>
                                                          </button>
                                                          <div class="dropdown-menu open" role="combobox"><ul class="dropdown-menu inner" role="listbox" aria-expanded="false"><li data-original-index="0" class="selected"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="true"><span class="text">基础配置</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="1"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">邮件配置</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="2"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">字典配置</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="3"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">会员配置</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="4"><a tabindex="0" class="" style="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">示例分组</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li></ul></div><select name="row[group]" class="form-control selectpicker" tabindex="-98">
                                                                                          <option value="basic" selected="">基础配置</option>
                                                                                          <option value="email">邮件配置</option>
                                                                                          <option value="dictionary">字典配置</option>
                                                                                          <option value="user">会员配置</option>
                                                                                          <option value="example">示例分组</option>
                                                                                      </select></div>
                                                  </div>
                                              </div>
                                              <div class="form-group">
                                                  <label for="name" class="control-label col-xs-12 col-sm-2">变量名:</label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <input type="text" class="form-control" id="name" name="row[name]" value="">
                                                  </div>
                                              </div>
                                              <div class="form-group">
                                                  <label for="title" class="control-label col-xs-12 col-sm-2">变量标题:</label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <input type="text" class="form-control" id="title" name="row[title]" value="">
                                                  </div>
                                              </div>
                                              <div class="form-group">
                                                  <label for="value" class="control-label col-xs-12 col-sm-2">变量值:</label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <input type="text" class="form-control" id="value" name="row[value]" value="" data-rule="">
                                                  </div>
                                              </div>
                                              <div class="form-group hide" id="add-content-container">
                                                  <label for="content" class="control-label col-xs-12 col-sm-2">数据列表:</label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <textarea name="row[content]" id="content" cols="30" rows="5" class="form-control">value1|title1
                          value2|title2</textarea>
                                                  </div>
                                              </div>
                                              <div class="form-group">
                                                  <label for="tip" class="control-label col-xs-12 col-sm-2">提示信息:</label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <input type="text" class="form-control" id="tip" name="row[tip]" value="" data-rule="">
                                                  </div>
                                              </div>
                                              <div class="form-group">
                                                  <label for="rule" class="control-label col-xs-12 col-sm-2">校验规则:</label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <input type="text" class="form-control" id="rule" name="row[rule]" value="">
                                                  </div>
                                              </div>
                                              <div class="form-group">
                                                  <label for="extend" class="control-label col-xs-12 col-sm-2">扩展属性:</label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <textarea name="row[extend]" id="extend" cols="30" rows="5" class="form-control" data-rule=""></textarea>
                                                  </div>
                                              </div>
                                              <div class="form-group">
                                                  <label class="control-label col-xs-12 col-sm-2"></label>
                                                  <div class="col-xs-12 col-sm-4">
                                                      <button type="submit" class="btn btn-success btn-embossed">确定</button>
                                                      <button type="reset" class="btn btn-default btn-embossed">重置</button>
                                                  </div>
                                              </div>

                                          </form>

                                      </div>
                                  </div>
                              </div>
                          </div>

                    </div>
                </div>
            </div>
        </div>
